package plar.core;

import java.awt.Point;
import java.awt.Polygon;

public class Common {

	public static void info(String i)
	{
		System.out.println("plar: "+i);
	}

	public static boolean polygonIntersects(Polygon a, Polygon b) {
		boolean intersection = false;
		for(int i=0;i<b.npoints;i++)
		{
			if(a.contains(new Point(b.xpoints[i],b.ypoints[i]))) intersection = true;
		}
		return intersection;
		
	}
}
